﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="frmLogin.aspx.cs" Inherits="Meotom.Upload.v2.Account.FrmLogin" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        * { margin: 0; padding: 0; }
        body { font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; background-color: #EEEEEE; }
        .LoginFrm { background: none repeat scroll 0 0 #FFFFFF; border: 1px solid #E5E5E5; border-radius: 10px 10px 10px 10px; float: left; font-weight: normal; margin-left: 8px; margin-top: 20px; padding: 16px 16px 15px; width: 430px; }
        .pLogin, .inline { color: #777777; font-size: 13px; }
        .login_right input { background: none repeat scroll 0 0 #FBFBFB; border: 1px solid #E5E5E5; font-size: 24px; margin-bottom: 16px; margin-right: 6px; margin-top: 2px; padding: 3px; width: 97%; width: 415px; }
        .loginLine { float: left; width: 100%; }
        .submit { border: 1px solid #DFDFDF; cursor: pointer; font-size: 11px !important; line-height: 16px; width: auto !important; color: #FFF; font-weight: bold; }
        .failureNotification { color: #FF0000; float: left; }
        .ctLogin { float: left; }
        #divLoading { color: #000; position: fixed; top: 0px; left: 0px; line-height: 26px; z-index: 100; padding-left: 10px; padding-right: 10px; font-weight: bold; border: solid 0px #FFF; background-color: #CCC; display: none; }
    </style>
    <script language="javascript" type="text/javascript">
        if (window == window.top) {
            location.href = "/";
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="LoginFrm clearfix">
        <h2>
            Đăng nhập</h2>
        <asp:Login ID="LoginUser" runat="server" EnableViewState="false" RenderOuterTable="false"
            FailureText="* Sai tên đăng nhập hoặc mật khẩu." DestinationPageUrl="/Account/frmLogin.aspx?action=Redirect">
            <LayoutTemplate>
                <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="failureNotification"
                    ValidationGroup="LoginUserValidationGroup" ShowSummary="false" ShowMessageBox="False" />
                <div style="margin-top: 20px; float: left;">
                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" Display="Dynamic"
                        ControlToValidate="UserName" CssClass="failureNotification" ErrorMessage="* Tên đăng nhập không được để trống."
                        ValidationGroup="LoginUserValidationGroup">* Tên đăng nhập không được để trống.<br /></asp:RequiredFieldValidator>
                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" Display="Dynamic"
                        ControlToValidate="Password" CssClass="failureNotification" ErrorMessage="* Mật khẩu không được để trống."
                        ValidationGroup="LoginUserValidationGroup">* Mật khẩu không được để trống.<br /></asp:RequiredFieldValidator>
                </div>
                <div class="ctLogin" style="margin-top: 20px;">
                    <div class="loginLine">
                        <div class="sign_left">
                            <p class="pLogin">
                                Tên đăng nhập</p>
                        </div>
                        <div class="login_right">
                            <asp:TextBox ID="UserName" runat="server" CssClass="textEntry"></asp:TextBox>
                        </div>
                    </div>
                    <div class="loginLine">
                        <div class="sign_left">
                            <p class="pLogin">
                                Mật khẩu</p>
                        </div>
                        <div class="login_right">
                            <asp:TextBox ID="Password" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
                        </div>
                    </div>
                    <div class="loginLine">
                        <div class="loginLine">
                            <div class="sign_left" style="float: left;">
                                <asp:CheckBox ID="RememberMe" runat="server" />
                                <asp:Label ID="RememberMeLabel" runat="server" AssociatedControlID="RememberMe" CssClass="inline">Ghi nhớ đăng nhập</asp:Label>
                            </div>
                            <div class="login_right" style="float: right;">
                                <asp:Button ID="LoginButton" runat="server" CssClass="submit" Style="background-color: rgb(33, 117, 155);"
                                    CommandName="Login" Text="Đăng nhập" ValidationGroup="LoginUserValidationGroup" />
                            </div>
                        </div>
                    </div>
                    <div class="loginLine">
                        <div class="sign_left">
                        </div>
                        <div class="login_right">
                            <a href="/Account/frmLostPassword.aspx" title="Lost Password">Quên mật khẩu?</a>
                        </div>
                    </div>
                </div>
            </LayoutTemplate>
        </asp:Login>
    </div>
    </form>
</body>
</html>
